package cn.tedu.spring.eg1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestProduct {
    public static void main(String[] args) {
        ApplicationContext context=new AnnotationConfigApplicationContext("cn.tedu.spring.eg1");
        Object eg1 = context.getBean(product.class);//写类不要写包会找不到需要你提供的是自己的类而不是包 ""小写也可以
        System.out.println(eg1);
    }
}
